home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Windows Selection
/
Windows Selection 1.iso
/
Programmer's Utilities
/
Freeman Installer
/
dllldr.h
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1997-04-10
|
473 b
|
40 lines
#define __DLLLDR_H
class dllldr
{
public:
HINSTANCE h;
dllldr()
{
h = 0;
}
~dllldr()
{
free();
}
int init(char file[])
{
if (int(h = LoadLibrary(file)) < HINSTANCE_ERROR)
{
h = 0;
}
return h != 0;
}
void free()
{
if (h != 0)
{
FreeLibrary(h);
h = 0;
}
}
operator HINSTANCE()
{
return h;
}
};